<script language="javascript" type="text/javascript">
    function loginIn() {
        window.location.href = "login.aspx?rurl=" + window.location.href;
        return false;
    }
</script>
<div class="guozhi-nav">
    <div class="welcome" id="linfo">
        &nbsp;&nbsp;&nbsp;&nbsp;订购网址：www.guozhi321.com
    </div>
    <div class="right">
        <ul>
            <li id="lon"><a href="javascript:loginIn();">登录</a></li>
            <li id="reg"><a href="/register.aspx">注册</a></li>
            <li id="lmyOrder"><a href="/myorders.aspx">我的订单</a></li>
        </ul>
    </div>
    <div class="sina">
        <a href="http://weibo.com/signup/signup.php?inviteCode=2675982501" target="_blank">
            <img src="images/sina.png" width="70" height="22" border="0" /></a>
    </div>
</div>
<div class="nav2">
    <span><a href="/">
        <img src="images/gz_sy_05.gif" width="197" height="66" border="0" /></a></span><span><a
            href="juice.aspx" onmouseover="button1.src=button1up.src" onmouseout="button1.src=button1down.src"><img
                name="button1" src="images/gz_sy_06.gif" width="142" height="66" border="0" style="cursor: pointer;" /></a></span><span><a
                    href="dessert.aspx" onmouseover="button2.src=button2up.src" onmouseout="button2.src=button2down.src"><img
                        name="button2" src="images/gz_sy_07.gif" width="143" height="66" border="0" style="cursor: pointer;" /></a></span><span><a
                            href="meal.aspx" onmouseover="button3.src=button3up.src" onmouseout="button3.src=button3down.src"><img
                                name="button3" src="images/gz_sy_08.gif" width="144" height="66" border="0" style="cursor: pointer;" /></a></span><span><a
                                    href="special.aspx" onmouseover="button4.src=button4up.src" onmouseout="button4.src=button4down.src"><img
                                        name="button4" src="images/gz_sy_09.gif" width="144" height="66" border="0" style="cursor: pointer;" /></a></span>
</div>
<script src="/Scripts/gz-1.7.2.min.js" type="text/javascript"></script>
<script src="/Scripts/gz_Cookies.js" type="text/javascript"></script>
<script type="text/javascript">
    $("#lmyOrder").hide();
    if (GetCookie("gz_customer") != null) {
        var u = $.evalJSON(GetCookie("gz_customer"));
        $("#linfo").html("您好<font style='font-weight: bold'> " + decodeURIComponent(u.Name) + "</font>，欢迎光临果之！&nbsp;&nbsp;&nbsp;&nbsp;订购网址：www.guozhi321.com ");
        $("#lmyOrder").html("<a href='myorders.aspx'>我的订单</a>&nbsp;&nbsp;<a style='cursor:hand' onclick='loginOut()'>退出</a>").show();
        $("#lon").hide();
        $("#reg").hide();

    }
    else {
        $("#reg").show();
    }

    function loginOut() {
        DeleteCookie("gz_customer");
        window.location.href = "/";
    }



    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null)
            return unescape(r[2]);
        return null;
    } 
</script>
<script language="javascript" type="text/javascript">
    button1up = new Image(142, 66);
    button1up.src = "images/gz_sy2_06.gif";

    button1down = new Image(142, 66);
    button1down.src = "images/gz_sy_06.gif";

    button2up = new Image(143, 66);
    button2up.src = "images/gz_sy2_07.gif";

    button2down = new Image(143, 66);
    button2down.src = "images/gz_sy_07.gif";

    button3up = new Image(144, 66);
    button3up.src = "images/gz_sy2_08.gif";

    button3down = new Image(144, 66);
    button3down.src = "images/gz_sy_08.gif";

    button4up = new Image(144, 66);
    button4up.src = "images/gz_sy2_09.gif";

    button4down = new Image(144, 66);
    button4down.src = "images/gz_sy_09.gif";


</script>
